/*
 * @Author: fang quan
 * @Date: 2020-06-10 09:53:20 
 * @Last Modified by: fang quan
 * @Last Modified time: 2020-06-10 17:02:43
 * @Usage example接口集合
 */

 import request from "@/utils/request";
 let domain = process.env.VUE_APP_TYPE == "online" ? "http://api.pycoding.com" : "http://py.dev.yatiku.com";

/**
 * 接口1 有taost loading
 */
export let portOne = (params) => request.get('/api/portOne', params);

/**
 * 接口2 有taost 无loading
 */
export let porTwo = (params) => request.get('/api/porTwo', params, {
  showLoading: false
});

/**
 * 接口3 无taost 有loading
 */
export let portThree = (params) => request.get('/api/portThree', params, {
  showToast: false
});

/**
 * 接口4 无toast loading
 */
export let portFour = (params) => request.get('/api/portFour', params, {
  showToast: false,
  showLoading: false
});

/**
 * 接口5 自定义特殊接口域名
 */
export let portFive = (params) => request.get(`${domain}/api/portFive`, params);

/**
 * 接口6 自定义请求头类型 headers
 */
export let portSix = (params) => request.get(`${domain}/api/portSix`, params, {
  headers: { "Content-Type": "application/json" }
});